<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Awesome-pyecharts</title>
                <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/jquery.min.js"></script>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/jquery-ui.min.js"></script>
            <script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/ResizeSensor.js"></script>

            <link rel="stylesheet"  href="https://assets.pyecharts.org/assets/v5/jquery-ui.css">

</head>
<body >
    <style>.box {  } </style>
        
    <div class="box">
                <div id="743abe37cb5f4db29685efd86af9df23" class="chart-container" style="position: absolute; width: 745.4px; height: 473.4px; top: 63.400001525878906px; left: 660px;"></div>
    <script>
        var chart_743abe37cb5f4db29685efd86af9df23 = echarts.init(
            document.getElementById('743abe37cb5f4db29685efd86af9df23'), 'white', {renderer: 'canvas'});
        var option_743abe37cb5f4db29685efd86af9df23 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },
    "color": [
        "#5470c6",
        "#91cc75",
        "#fac858",
        "#ee6666",
        "#73c0de",
        "#3ba272",
        "#fc8452",
        "#9a60b4",
        "#ea7ccc"
    ],
    "series": [
        {
            "type": "pie",
            "name": "\u4eba\u7269\u51fa\u573a\u6b21\u6570",
            "colorBy": "data",
            "legendHoverLink": true,
            "selectedMode": false,
            "selectedOffset": 10,
            "clockwise": true,
            "startAngle": 90,
            "minAngle": 0,
            "minShowLabelAngle": 0,
            "avoidLabelOverlap": true,
            "stillShowZeroSum": true,
            "percentPrecision": 2,
            "showEmptyCircle": true,
            "emptyCircleStyle": {
                "color": "lightgray",
                "borderColor": "#000",
                "borderWidth": 0,
                "borderType": "solid",
                "borderDashOffset": 0,
                "borderCap": "butt",
                "borderJoin": "bevel",
                "borderMiterLimit": 10,
                "opacity": 1
            },
            "data": [
                {
                    "name": "\u5218\u5907",
                    "value": 1436
                },
                {
                    "name": "\u8bf8\u845b\u4eae",
                    "value": 1264
                },
                {
                    "name": "\u66f9\u64cd",
                    "value": 937
                },
                {
                    "name": "\u5173\u7fbd",
                    "value": 873
                },
                {
                    "name": "\u5f20\u98de",
                    "value": 395
                },
                {
                    "name": "\u8d75\u4e91",
                    "value": 343
                },
                {
                    "name": "\u5415\u5e03",
                    "value": 308
                },
                {
                    "name": "\u5b59\u6743",
                    "value": 264
                },
                {
                    "name": "\u53f8\u9a6c\u61ff",
                    "value": 256
                },
                {
                    "name": "\u9b4f\u5ef6",
                    "value": 247
                },
                {
                    "name": "\u5468\u745c",
                    "value": 234
                },
                {
                    "name": "\u59dc\u7ef4",
                    "value": 228
                },
                {
                    "name": "\u8881\u7ecd",
                    "value": 213
                },
                {
                    "name": "\u9a6c\u8d85",
                    "value": 198
                },
                {
                    "name": "\u5f20\u90c3",
                    "value": 180
                },
                {
                    "name": "\u9ec4\u5fe0",
                    "value": 175
                }
            ],
            "radius": [
                "40%",
                "80%"
            ],
            "center": [
                "50%",
                "50%"
            ],
            "label": {
                "show": true,
                "margin": 8,
                "valueAnimation": false
            },
            "labelLine": {
                "show": true,
                "showAbove": false,
                "length": 15,
                "length2": 15,
                "smooth": false,
                "minTurnAngle": 90,
                "maxSurfaceAngle": 90
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u5218\u5907",
                "\u8bf8\u845b\u4eae",
                "\u66f9\u64cd",
                "\u5173\u7fbd",
                "\u5f20\u98de",
                "\u8d75\u4e91",
                "\u5415\u5e03",
                "\u5b59\u6743",
                "\u53f8\u9a6c\u61ff",
                "\u9b4f\u5ef6",
                "\u5468\u745c",
                "\u59dc\u7ef4",
                "\u8881\u7ecd",
                "\u9a6c\u8d85",
                "\u5f20\u90c3",
                "\u9ec4\u5fe0"
            ],
            "selected": {},
            "show": true,
            "left": 40,
            "top": 50,
            "orient": "vertical",
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14,
            "backgroundColor": "transparent",
            "borderColor": "#ccc",
            "borderRadius": 0,
            "pageButtonItemGap": 5,
            "pageButtonPosition": "end",
            "pageFormatter": "{current}/{total}",
            "pageIconColor": "#2f4554",
            "pageIconInactiveColor": "#aaa",
            "pageIconSize": 15,
            "animationDurationUpdate": 800,
            "selector": false,
            "selectorPosition": "auto",
            "selectorItemGap": 7,
            "selectorButtonGap": 10
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5,
        "order": "seriesAsc"
    },
    "title": [
        {
            "show": true,
            "target": "blank",
            "subtarget": "blank",
            "padding": 5,
            "itemGap": 10,
            "textAlign": "auto",
            "textVerticalAlign": "auto",
            "triggerEvent": false
        }
    ]
};
        chart_743abe37cb5f4db29685efd86af9df23.setOption(option_743abe37cb5f4db29685efd86af9df23);
    </script>
<br/>                <div id="dad846b5cec04ca98925f4c9da0656f7" class="chart-container" style="position: absolute; width: 645.4px; height: 533.4px; top: 42.20000076293945px; left: 12px;"></div>
    <script>
        var chart_dad846b5cec04ca98925f4c9da0656f7 = echarts.init(
            document.getElementById('dad846b5cec04ca98925f4c9da0656f7'), 'white', {renderer: 'canvas'});
        var option_dad846b5cec04ca98925f4c9da0656f7 = {
    "animation": true,
    "animationThreshold": 2000,
    "animationDuration": 1000,
    "animationEasing": "cubicOut",
    "animationDelay": 0,
    "animationDurationUpdate": 300,
    "animationEasingUpdate": "cubicOut",
    "animationDelayUpdate": 0,
    "aria": {
        "enabled": false
    },
    "color": [
        "#5470c6",
        "#91cc75",
        "#fac858",
        "#ee6666",
        "#73c0de",
        "#3ba272",
        "#fc8452",
        "#9a60b4",
        "#ea7ccc"
    ],
    "series": [
        {
            "type": "bar",
            "name": "\u51fa\u573a\u6b21\u6570",
            "legendHoverLink": true,
            "data": [
                175,
                180,
                198,
                213,
                228,
                234,
                247,
                256,
                264,
                308,
                343,
                395,
                873,
                937,
                1264,
                1436
            ],
            "realtimeSort": false,
            "showBackground": false,
            "stackStrategy": "samesign",
            "cursor": "pointer",
            "barMinHeight": 0,
            "barCategoryGap": "20%",
            "barGap": "30%",
            "large": false,
            "largeThreshold": 400,
            "seriesLayoutBy": "column",
            "datasetIndex": 0,
            "clip": true,
            "zlevel": 0,
            "z": 2,
            "label": {
                "show": true,
                "position": "right",
                "margin": 8,
                "valueAnimation": false
            }
        }
    ],
    "legend": [
        {
            "data": [
                "\u51fa\u573a\u6b21\u6570"
            ],
            "selected": {},
            "show": false,
            "padding": 5,
            "itemGap": 10,
            "itemWidth": 25,
            "itemHeight": 14,
            "backgroundColor": "transparent",
            "borderColor": "#ccc",
            "borderRadius": 0,
            "pageButtonItemGap": 5,
            "pageButtonPosition": "end",
            "pageFormatter": "{current}/{total}",
            "pageIconColor": "#2f4554",
            "pageIconInactiveColor": "#aaa",
            "pageIconSize": 15,
            "animationDurationUpdate": 800,
            "selector": false,
            "selectorPosition": "auto",
            "selectorItemGap": 7,
            "selectorButtonGap": 10
        }
    ],
    "tooltip": {
        "show": true,
        "trigger": "item",
        "triggerOn": "mousemove|click",
        "axisPointer": {
            "type": "line"
        },
        "showContent": true,
        "alwaysShowContent": false,
        "showDelay": 0,
        "hideDelay": 100,
        "enterable": false,
        "confine": false,
        "appendToBody": false,
        "transitionDuration": 0.4,
        "textStyle": {
            "fontSize": 14
        },
        "borderWidth": 0,
        "padding": 5,
        "order": "seriesAsc"
    },
    "xAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "axisLabel": {
                "show": true,
                "rotate": -30,
                "margin": 8,
                "valueAnimation": false
            },
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "animation": true,
            "animationThreshold": 2000,
            "animationDuration": 1000,
            "animationEasing": "cubicOut",
            "animationDelay": 0,
            "animationDurationUpdate": 300,
            "animationEasingUpdate": "cubicOut",
            "animationDelayUpdate": 0
        }
    ],
    "yAxis": [
        {
            "show": true,
            "scale": false,
            "nameLocation": "end",
            "nameGap": 15,
            "gridIndex": 0,
            "inverse": false,
            "offset": 0,
            "splitNumber": 5,
            "minInterval": 0,
            "splitLine": {
                "show": true,
                "lineStyle": {
                    "show": true,
                    "width": 1,
                    "opacity": 1,
                    "curveness": 0,
                    "type": "solid"
                }
            },
            "animation": true,
            "animationThreshold": 2000,
            "animationDuration": 1000,
            "animationEasing": "cubicOut",
            "animationDelay": 0,
            "animationDurationUpdate": 300,
            "animationEasingUpdate": "cubicOut",
            "animationDelayUpdate": 0,
            "data": [
                "\u9ec4\u5fe0",
                "\u5f20\u90c3",
                "\u9a6c\u8d85",
                "\u8881\u7ecd",
                "\u59dc\u7ef4",
                "\u5468\u745c",
                "\u9b4f\u5ef6",
                "\u53f8\u9a6c\u61ff",
                "\u5b59\u6743",
                "\u5415\u5e03",
                "\u8d75\u4e91",
                "\u5f20\u98de",
                "\u5173\u7fbd",
                "\u66f9\u64cd",
                "\u8bf8\u845b\u4eae",
                "\u5218\u5907"
            ]
        }
    ],
    "title": [
        {
            "show": true,
            "text": "\u4e09\u56fd\u6f14\u4e49\u4eba\u7269\u51fa\u573a\u6b21\u6570",
            "target": "blank",
            "subtarget": "blank",
            "padding": 5,
            "itemGap": 10,
            "textAlign": "auto",
            "textVerticalAlign": "auto",
            "triggerEvent": false
        }
    ]
};
        chart_dad846b5cec04ca98925f4c9da0656f7.setOption(option_dad846b5cec04ca98925f4c9da0656f7);
    </script>
<br/>    </div>
    <script>
            $('#743abe37cb5f4db29685efd86af9df23').css('border-style', 'dashed').css('border-width', '0px');$("#743abe37cb5f4db29685efd86af9df23>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#743abe37cb5f4db29685efd86af9df23'), function() { chart_743abe37cb5f4db29685efd86af9df23.resize()});
            $('#dad846b5cec04ca98925f4c9da0656f7').css('border-style', 'dashed').css('border-width', '0px');$("#dad846b5cec04ca98925f4c9da0656f7>div:nth-child(1)").width("100%").height("100%");
            new ResizeSensor(jQuery('#dad846b5cec04ca98925f4c9da0656f7'), function() { chart_dad846b5cec04ca98925f4c9da0656f7.resize()});
            var charts_id = ['743abe37cb5f4db29685efd86af9df23','dad846b5cec04ca98925f4c9da0656f7'];
function downloadCfg () {
    const fileName = 'chart_config.json'
    let downLink = document.createElement('a')
    downLink.download = fileName

    let result = []
    for(let i=0; i<charts_id.length; i++) {
        chart = $('#'+charts_id[i])
        result.push({
            cid: charts_id[i],
            width: chart.css("width"),
            height: chart.css("height"),
            top: chart.offset().top + "px",
            left: chart.offset().left + "px"
        })
    }

    let blob = new Blob([JSON.stringify(result)])
    downLink.href = URL.createObjectURL(blob)
    document.body.appendChild(downLink)
    downLink.click()
    document.body.removeChild(downLink)
}
    </script>
</body>
</html>
